<template>
  <div
    class="jy-style-height copyright-box"
    :style="{
      background: `rgba(33, 33, 33, 1) url(${
        publicUrls + 'free/style7/publicStyle7Bg.png' + '?imageView2/3/format/webp'
      })`,
    }"
  >
    <div class="cultural-bg">
      <div class="copyright-heard">
        <img class="backHome" @click="blankHome" :src="publicUrls + 'free/style7/backHome.png'" alt="" />
        <span class="heard-title">策展团队</span>
        <div class="backHome"></div>
      </div>
      <div
        class="copyright-content"
        :style="{
          backgroundImage: ` url(${publicUrls + 'free/style7/copyright7Bg.png' + '?imageView2/3/format/webp'})`,
        }"
      >
        <scrollBox
          color="#56677B"
          v-if="Scrollheights"
          :remarks="commonStore.teamInfo?.text"
          :byid="234"
          :tabbmScroll="getTabmComputed"
          :height="getScrollWComputed"
        >
          <template #solidBorder>
            <div class="solidBorder-child"></div>
          </template>
        </scrollBox>
      </div>
      <a :href="doorUrl" target="blank" class="logo-box">
        <i class="iconfonts">&#xe6dd;</i>
        <span>· 永不落幕的展览与展示平台</span>
      </a>
    </div>
    <MenuNavigation />
  </div>
</template>

<script lang="ts">
export default defineComponent({
  name: 'style7',
});
</script>  

<script setup lang="ts">
import { publicUrls, doorUrl } from '@/utils/minxin';
import { commonDataStore, useProjectStore } from '@/store';
import { defineComponent, nextTick, ref, computed } from 'vue';
import { useRouter, useRoute } from 'vue-router';
import ScrollBox from '../../copyright/scrollBox10.vue';
import MenuNavigation from '@/freeComponents/menuNavigation/index.vue';

const commonStore = commonDataStore();
commonStore.getTeamContentDescription();
const store = useProjectStore();
const router = useRouter();
const route = useRoute();
const content = ref(null);
const Scrollheights = ref();

let viewportHeight = window.innerHeight;
Scrollheights.value = viewportHeight * 0.4;
const getScrollWComputed = computed(() => {
  let rootNode = document.documentElement;

  // 获取计算后的样式
  let computedStyle = window.getComputedStyle(rootNode);

  // 读取字体大小（注意这里返回的可能是一个包含单位的字符串，如"16px"）
  let fontSize = computedStyle.fontSize;

  // 如果你需要一个数字值（不带单位）进行计算，你可能需要解析这个字符串
  // 例如，使用正则表达式或split()方法去除单位，并将结果转换为数字
  let fontSizeNumber = parseFloat(fontSize.replace(/[^0-9.-]/g, ''));
  let heights = (fontSizeNumber / 144) * 460;
  return heights;
});
const getTabmComputed = computed(() => {
  let rootNode = document.documentElement;

  // 获取计算后的样式
  let computedStyle = window.getComputedStyle(rootNode);

  // 读取字体大小（注意这里返回的可能是一个包含单位的字符串，如"16px"）
  let fontSize = computedStyle.fontSize;

  // 如果你需要一个数字值（不带单位）进行计算，你可能需要解析这个字符串
  // 例如，使用正则表达式或split()方法去除单位，并将结果转换为数字
  let fontSizeNumber = parseFloat(fontSize.replace(/[^0-9.-]/g, ''));
  let heights = (fontSizeNumber / 144) * 60;
  return heights;
});
const blankHome = () => {
  store.menuId = null;
  router.push({ name: route.meta.loopType ? 'exhibitionHome' : 'templateedit' });
};
</script>

<style scoped lang="less">
.copyright-box {
  width: 100%;
  padding-bottom: 0px;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}
.cultural-bg {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.copyright-heard {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 32px;
  margin-top: 120px;
  padding: 0 120px;
  span {
    color: #5391a3;
    font-family: 'SourceHanSerifCN-Bold';
    font-size: 36px;
    line-height: 56px;
  }
  .backHome {
    cursor: pointer;
    width: 48px;
    height: 48px;
    margin-left: 0 !important;
  }
  .heard-title {
    color: rgba(112, 157, 134, 1);
    font-family: 'SourceHanSerifCN-Bold';
    font-size: 36px;
    line-height: 56px;
    text-align: center;
  }
}

.copyright-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1200px;
  height: 560px;
  padding-left: 70px;
  padding-right: 50px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.copyrightInfo {
  width: 100%;
  height: 100%;
}

.solidBorder-child {
  width: 1px;
  height: 100%;
  background: rgba(156, 180, 158, 0.6);
  border-radius: 2px;
}
::v-deep .templatestyle1-scroll-box-tumb {
  display: flex;
  justify-content: center;
  top: -4px;
  .scrollBar {
    width: 5px;
    height: 60px;
    background: rgba(156, 180, 158, 1);
    border-radius: 4px;
    box-shadow: none;
  }
}
::v-deep .unit-exbi-remarks-info-remarks {
  p {
    color: #56677b;
    font-size: 17px;
    text-align: justify;
    font-weight: normal;
  }
}
.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  position: absolute;
  bottom: 0px;
  left: 0px;
  .iconfonts {
    font-size: 25px;
    line-height: 32px;
    color: rgba(156, 180, 158, 1);
    margin-top: 3px;
  }
  span {
    font-family: PingFang SC;
    font-size: 16px;
    line-height: 22.4px;
    text-align: left;
    color: rgba(156, 180, 158, 1);
    margin-left: 8px;
  }
}
</style>